﻿<%@ Page Title="Report Card" Language="C#" MasterPageFile="~/masterpage.master" AutoEventWireup="true" CodeFile="ReportCard.aspx.cs" Inherits="ReportCard" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <link rel="stylesheet" type="text/css" href="css/admin.css" />
  <script language="javascript" type="text/javascript">
  	//var controldivname = 'ctl00_ContentPlaceHolder1_rgReportCard';

  </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:900px;">
        <tr>
            <td>
	            <div class="wrap4">
                    <div class="abcd">
	                    <table width= "100%">
                            <tr>
	                            <td align="left" valign="middle" width="300">
                                    <asp:Label ID="lbStudentName" runat="server" Text="Student name" Font-Underline="true"/>
                                </td>
		
		                        <td align="right">
                                    <asp:ImageButton ImageUrl="Images/excel_icon2.png" ID="lbExport" runat="server" 
		                                onclick="lbExport_Click" ToolTip="Export to Excel" />
                                </td>
		                    </tr>
	                    </table>
                        <div class="clr">
                        </div>
                    </div>
                </div>
                <div class="clr"></div>
            </td>
        </tr>
    </table>

    <table width="900px">
        <tr>
            <td align="left">
                <telerik:radscriptmanager ID="RadScriptManager1" Runat="server"/>
                <telerik:radgrid ID="rgReportCard" runat="server" AllowPaging="True" 
		            AllowSorting="True" Width="100%" 
	                CssClass="stats"	onsortcommand="rgReportCard_SortCommand" 
		            onpageindexchanged="rgReportCard_PageIndexChanged"  GridLines="None" 
		            AllowAutomaticUpdates="True" AutoGenerateColumns="False" Height="230px"
		            >
		
		            <HeaderStyle  Font-Bold="True" Font-Underline="False" Font-Size="9" HorizontalAlign="Center"  />
                    <HeaderContextMenu>
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                    </HeaderContextMenu>

                    <FilterMenu>
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                    </FilterMenu>

                        <ItemStyle BackColor="Silver" />
	                    <AlternatingItemStyle BackColor="LightGray" />

                        <MasterTableView>
				            <Columns>
                                <telerik:GridBoundColumn DataField="CLASS" SortExpression="CLASS" HeaderText="CLASS" UniqueName="CLASS" HeaderStyle-Width="700" />
				                <telerik:GridHyperLinkColumn  DataNavigateUrlFields="student_id,section_id,CLASS" UniqueName="GRADE"
			                        DataNavigateUrlFormatString="StudentSectionGrades.aspx?studentId={0}&sectionId={1}&class={2}"   DataTextField="GRADE" SortExpression="GRADE" HeaderText="GRADE" HeaderStyle-Width="200">
			                        <ItemStyle  HorizontalAlign="Center"/>
			                    </telerik:GridHyperLinkColumn>
		                    </Columns>
	                    </MasterTableView>

                        <ClientSettings>
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>
                        </ClientSettings>
                </telerik:radgrid>
	        </td>
        </tr>
        <tr>
            <td align="left">
            <div class="page_text">
                <div>
                    <asp:Label ID="lblLatestWeeklyProgressReport" runat="server" Text="The latest weekly progress report has been emailed to the student (and parents) on"></asp:Label>
                    <asp:HyperLink ID="hlLatestWeeklyProgressReport" runat="server" Target="_blank"></asp:HyperLink>
                </div>
                <br />
                <div>
					<table width="100%" cellpadding="0" cellspacing="0" border="0">	
					<tr>
					<td width="33%" align="left"><asp:HyperLink ID="hlEmailedReportCardHistory" runat="server">Emailed Report Card History</asp:HyperLink></td>
					<td width="34%" align="center"><asp:HyperLink ID="hlWeekToDateProgressReport" runat="server" Target="_blank">Week-to-Date&nbsp;Progress&nbsp;Report</asp:HyperLink></td>
					<td width="33%" align="right"><asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="if(confirm('Please confirm emailing weekly progress report?')) { $('#WaitMsg').show(); return true; } return false;" onclick="lnkSendReport_Click">Email Report</asp:LinkButton></td>
					</tr>
					</table>
					<div style="width:100%; margin-top:20px; text-align:center;color:Red;">
						<asp:Label ID="lblSendReportMessage" runat="server" CssClass="sendReportMessage"></asp:Label>
					</div>
					<div id="WaitMsg" style="width:100%; text-align:center; color:Red; display:none;">
					<h1>Please wait...</h1>
					</div>
					
                </div>
          </div>
	        </td>
        </tr>
    </table>
    <br /><br />
</asp:Content>

